<div>
    <div class="strip"></div>
    <div class="box text-left">
        <div class="layui-inline logo">
            <a href="/"><img style="width:170px;height:60px;" src="__ROOT__/static/index/img/logo1.png"></a>
        </div>
        <div class="layui-inline nav">
            <ul class="layui-nav" style="background-color:transparent;padding:0 5px;">
                {foreach $nav as $key=>$vo}
                <li class="layui-nav-item">
                    <a href="{$vo.linkurl}">{$vo.name} {if count($vo.sub) gt 0}&nbsp;&nbsp;{/if}</a>
                    {if count($vo.sub) gt 0}
                    <dl class="layui-nav-child">
                        {foreach $vo['sub'] as $key2=>$vo2}
                        <dd><a href="{$vo2.linkurl}">{$vo2.name}</a></dd>
                        {/foreach}
                    </dl>
                    {/if}
                </li>
                {/foreach}
            </ul>
        </div>
        <div class="layui-inline search" style="display: none;">
            <span style="cursor: pointer;" class="nav-icon fa fa-search"></span>
        </div>
        <div class="layui-inline" style="width:119px;text-align: center;">
            {if session('member.username')}
            <input type="hidden" name="loginStatus" value="1" />
            <ul class="layui-nav" style="padding:0;background-color:transparent;">
                <li class="layui-nav-item">
                    <dl class="layui-nav-child">
                        <dd><a href="/edu/enroll.html"><i class="layui-icon layui-icon-engine margin-right-5"></i> 在线报名</a></dd>
                        <dd><a href="/edu/cert.html"><i class="layui-icon layui-icon-cellphone margin-right-5"></i> 我的证书</a></dd>
                        <dd><a href="/register/profile.html"><i class="layui-icon layui-icon-set-fill margin-right-5"></i> 基本资料</a></dd>
                        <dd><a class="logout"><i class="layui-icon layui-icon-release margin-right-5"></i> 退出登录</a></dd>
                    </dl>
                    <a style="color:#282828;font-size:16px;padding:0 20px 0 0 !important;">
                        <span style="font-size:16px;color:#282828;">
                            <i style="font-size:16px !important;" class="layui-icon layui-icon-username margin-right-5"></i>
                            <span style="padding-right:15px;font-size:16px !important;">{:session('member.username')}</span>
                        </span>
                    </a>
                </li>
            </ul>
            {else}
            <input type="hidden" name="loginStatus" value="0" />
            <a class="login" style="color:#333;font-size:16px;">登 陆</a>
            {/if}
        </div>
    </div>
</div>